package cn.formal.entity;

import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result implements Serializable {
    private Boolean code;//执行结果，true为执行成功 false为执行失败
    private String msg;//返回结果信息
    private Object body;//返回数据

    public Result(boolean code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}